package simmar.utilities;

import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;

import simmar.xcs.XCSConfig;

public class Helpers
{
    public static XCSConfig.Action intToAction(int value)
    {
        return XCSConfig.Action.class.getEnumConstants()[value];
    }
        
    public static <T> List<T> getUniqueValues(Collection<T> values)
    {
        return new ArrayList<T>(new HashSet<T>(values));
    }
}
